package org.atovio.mvcConfig.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author AtoVio, Winter Yuan
 */
@RestController
public class ArticleController {

    @GetMapping("/articles/query")
    public String searchArticle() {
        return "查询到了文章";
    }

    @PostMapping("/articles/add")
    public String addArticle() {
        return "添加了新文章";
    }

    @PutMapping("/articles/update")
    public String editArticle() {
        return "修改了文章";
    }
}
